Let timeouts work right under Windows so GSAK (and users) can more readily
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 12 Jan 2004 06:43:14 +0000 (06:43 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 12 Jan 2004 06:43:14 +0000 (06:43 +0000)
tell when their unit is turned off or unplugged.

gpsbabel/jeeps/gpsserial.c

index a2e24e75edfcef3c198dc5fa97e3d3f1f584fefa..5b6d02ebc408672ba135601da03044c38452e629 100644 (file)
@@ -84,6 +84,8 @@ int32 GPS_Serial_On(const char *port, int32 *fd)
 
        GetCommTimeouts (comport, &timeout);
        timeout.ReadIntervalTimeout = 10;
+       timeout.ReadTotalTimeoutMultiplier = 10;
+       timeout.ReadTotalTimeoutConstant = 1000;
        timeout.WriteTotalTimeoutMultiplier = 10;
        timeout.WriteTotalTimeoutConstant = 1000;
        if (!SetCommTimeouts (comport, &timeout)) {